package com.jinghang.wayofrich.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.jinghang.wayofrich.R;
import com.jinghang.wayofrich.WelcomeActivity;

/**
 * 邀请会员
 */
public class InviteVipActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_invite_vip);

        //头部文字和返回监听
        LinearLayout returnBack = findViewById(R.id.appbar_common_returback);
        returnBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                InviteVipActivity.this.finish();
            }
        });
        TextView mTextView = findViewById(R.id.appbar_common_name);
        mTextView.setText("邀请会员");

        //按钮监听
        Button button = findViewById(R.id.invite_vip_button);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent mainIntent = new Intent(InviteVipActivity.this, InviteVipShareActivity.class);
                InviteVipActivity.this.startActivity(mainIntent);
                InviteVipActivity.this.finish();
            }
        });
    }
}
